package com.tct.worktimeboard.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Huhailong
 * @Description 分页
 * @Date 2021/2/22.
 */
@Data
public class PageObject{
    @TableField(exist = false)
    private Integer pageNum;
    @TableField(exist = false)
    private Integer pageSize;
    @TableField(exist = false)
    private String queryStartTime;
    @TableField(exist = false)
    private String queryEndTime;

    @JsonIgnore
    public boolean isPaged(){
        return this.pageNum != null && this.pageSize != null;
    }
}
